Factoring Out Perfect Squares