Begin refactor for compile of very large templates into multiple classes