Simplify some rule productions.