Refactor including recipe logic.