Remove route dependency from url generator API.