instantiation of transformer class moved into protected method for
extending