Factorization of linear systems: a generalized framework