Factorise linear expressions