LPS-33263 Use parameters instead of states, prepare for removing states.
LPS-33263 Make TemplateParser stateless, prepare for removing it.
LPS-33263 Move logic in TemplateParser to Transformer and remove it - no changes.
LPS-33263 Clear up Transformer.