Seems like we could just call `generate_cookbook` in here and then just remove the first line from the file. It would definitely be simpler and less code to manage.