Extract presentational logic from PrimeFactorerValidator