Refactoring url helpers.