Move book config to generate
Refactor 'generate' module