Any chance of sharing code with `ol.source.TiledWMS` here? (Maybe in a separate pull request)