Refactor complex method in Rails/DynamicFindBy cop
Refactor complex method in Rails/DynamicFindBy cop

This cop had a fairly complex (ABC = 17.65) method `#autocorrect`.
This change attempts to simplify it a bit by extracting some named
methods.

There is opportunity to potentially generalize this into a
`MethodCallCorrector` class down the line.

tdeo/rubocop,jfelchner/rubocop,rrosenblum/rubocop,palkan/rubocop,deivid-rodriguez/rubocop,jmks/rubocop,smakagon/rubocop,panthomakos/rubocop,smakagon/rubocop,maxjacobson/rubocop,bquorning/rubocop,bquorning/rubocop,maxjacobson/rubocop,deivid-rodriguez/rubocop,bbatsov/rubocop,bbatsov/rubocop,petehamilton/rubocop,mikegee/rubocop,tdeo/rubocop,maxjacobson/rubocop,tejasbubane/rubocop,meganemura/rubocop,sue445/rubocop,jfelchner/rubocop,palkan/rubocop,petehamilton/rubocop,deivid-rodriguez/rubocop,vergenzt/rubocop,vergenzt/rubocop,vergenzt/rubocop,sue445/rubocop,petehamilton/rubocop,meganemura/rubocop,jmks/rubocop,jmks/rubocop,tejasbubane/rubocop,tdeo/rubocop,rrosenblum/rubocop,mikegee/rubocop,jfelchner/rubocop,panthomakos/rubocop,rrosenblum/rubocop,palkan/rubocop,mikegee/rubocop,tejasbubane/rubocop,bquorning/rubocop,panthomakos/rubocop,sue445/rubocop,meganemura/rubocop