Lps 29650 Refactor Transformer and TemplateParser