refactoring chef cookbook