Make link rewriter generic.