Refactor out parse_recipe_int and parse_recipe_float

Refactor out parse_recipe_int and parse_recipe_float