Factorisation by Grouping Terms