Simplifying rational expressions: common monomial factors