refactor getValidRecipe in RecipeFinderServiceImpl