Extract generators from cli.rb into their own files.