Rules are now written out only once if there is no REM substitution.