Refactoring recipe templates