Refactored PrimeFactoryWorker methods

Merged overloaded Decompose method into a single one.