Removes rules whose head appears in both lexical and nonlexical