Though I agree that the fact that we had to change a bunch of places is a smell.

Rather than doing stuff in `configure_connection`, I would refactor the code so that all of these sites are not generating URLs. Basically a method could generate the URLs and then it would be centralized in one place.

I'll try to push up a commit to show you what I mean.