Refactoring chef cookbook methods into cookbook_dao