This logic seems duplicate. Is it possible to aggregate it into something like an ETagUrlRewriter or something like that?