remove obsolete predicates from grammar