Pātuhitia tēnei: Factorization of matrix and operator functions