Moved code generation to top-level directory