Haskell: Refactor useful utilities into module
Haskell #7: Remove unneeded isFactorOf function