Text this: Factorization methods for photonics and rough surfaces