Extract tansformer to separate class