Clean up ruleToRewriteH a bit