There’s an issue about pruning the vocab based on usage, I think. You should consider if you need codegen for the entire AS spec if only using a small part of it, and then generate code from a minimal OWL definition. Maybe the minimalisation could be a CI build step (idk, idea just popped up).
PS. I briefly raised a somewhat related matter on the Matrix chatroom.
I did not know about that possibility, good idea.