Extract config for transformers from write API

Separation of concerns is good.