Extracted url conversion to separate class

As discussed in the previous PR for the router tests I have extracted the url conversion to a separate service