Consolidate generation logic into chef.