[#8] Refactoring out code for parsing a prime request away from routing logic