refactory chef cookbooks handling