remove duplicate rule definitions