Refactor valid recipes