Remove useless statements from the rules.