Implement duplicated rules finding.