The paper says, "g is an algebraic expression built by extracting factors from the numerator and denominator of the ODE to be solved" . It doesn't say all factors. However my interpretation may be wrong.