extract duplication into UrlPrefixer.