Migrate transformers to type safe map