Refactoring. Transformers factory.

Transformers factory with cache of transformers objects. 
cs