Factorizations of transfer functions