(feat) Moved code generation into its own module

This makes compilation *significantly* faster, making development
a much more pleasant experience.