Add proper factor functions to euler.factorization