Transformer, factory and registry