Rewrite grammar to have a separate slice rule.