simplify rst.RewriteRules