move combineRepeatedFPDivisors logic into a helper function; NFCI