Decided to change the template file to create a different dictionary and use switches instead of if/else in the parsers.