Polynomial Functions and Factorization