Reduce complexity in DuplicateMethods
Reduce complexity in DuplicateMethods

Split `on_defs` into smaller methods.

smakagon/rubocop,akihiro17/rubocop,NobodysNightmare/rubocop,jfelchner/rubocop,mclark/rubocop,bquorning/rubocop,mikegee/rubocop,vergenzt/rubocop,pocke/rubocop,Drenmi/rubocop,bquorning/rubocop,melch/rubocop,maxjacobson/rubocop,bquorning/rubocop,jfelchner/rubocop,mikegee/rubocop,panthomakos/rubocop,sue445/rubocop,legendetm/rubocop,hanumakanthvvn/rubocop,deivid-rodriguez/rubocop,Drenmi/rubocop,scottmatthewman/rubocop,rrosenblum/rubocop,maxjacobson/rubocop,backus/rubocop,petehamilton/rubocop,maxjacobson/rubocop,jfelchner/rubocop,jmks/rubocop,iGEL/rubocop,urbanautomaton/rubocop,deivid-rodriguez/rubocop,b-t-g/rubocop,dreyks/rubocop,bbatsov/rubocop,scottmatthewman/rubocop,sue445/rubocop,lucasuyezu/rubocop,mclark/rubocop,smakagon/rubocop,rrosenblum/rubocop,NobodysNightmare/rubocop,rrosenblum/rubocop,mikegee/rubocop,hanumakanthvvn/rubocop,tejasbubane/rubocop,backus/rubocop,tdeo/rubocop,haziqhafizuddin/rubocop,tejasbubane/rubocop,alexcstark/rubocop,sinsoku/rubocop,tdeo/rubocop,meganemura/rubocop,bbatsov/rubocop,akihiro17/rubocop,urbanautomaton/rubocop,vergenzt/rubocop,meganemura/rubocop,sue445/rubocop,melch/rubocop,alexcstark/rubocop,panthomakos/rubocop,pocke/rubocop,palkan/rubocop,haziqhafizuddin/rubocop,rtlechow/rubocop,b-t-g/rubocop,savef/rubocop,ilansh/rubocop,sinsoku/rubocop,rtlechow/rubocop,bankair/rubocop,lumeet/rubocop,legendetm/rubocop,jmks/rubocop,lumeet/rubocop,iGEL/rubocop,vergenzt/rubocop,jmks/rubocop,petehamilton/rubocop,tejasbubane/rubocop,deivid-rodriguez/rubocop,meganemura/rubocop,ilansh/rubocop,akihiro17/rubocop,alexdowad/rubocop,dreyks/rubocop,savef/rubocop,alexdowad/rubocop,palkan/rubocop,panthomakos/rubocop,petehamilton/rubocop,bankair/rubocop,tdeo/rubocop,palkan/rubocop,lucasuyezu/rubocop