Sorry, I don't think this should be part of the repository either. I can see two options:

1. Pass the options as arguments (which is what we do for start_link)
2. Call parse_url from the adapter

I am more inclined for the first. @ericmj ?