Rewrite substitution to work with current Rakudo.