Split the XML parsing, reduced fsm, and the code generation data structures out