Refactor parse_recipe

Refactor parse_recipe