Split codegen partially into own module, auto-generate capnp files.