Remove unused rules