Invariant factorization of LPDOs