GetUrl helper refactoring