merge UrlCalculator into RewriteEngine