Delegate transformation to `ol.format.*`

Fixes #2604.