Grouping Rules For Factoring