Rewriter for params