remove unnecessary/duplicated rules