Factoring the Greatest Common Factor from a Polynomial