(EDITOR) Split codegen into types and proto