Moved functionality from TransformerBundle to Transformer