refactoring recipe preparation