How do you feel about moving this to a different function? Something like `convertWmsUrlToWfsUrl`?

Just to isolate the ugliness, but keep the functionality.