Refactor PrimeFactorerValidator