Issue #3197545: Refactor Transformer into a TransformerFactory to better align with intended use of Transformer class, avoid issues with logging and decouple from the Transformer class
Closes #3197545