Remove unnneded rules