move the code generation to the repository