Refactor DuplicateMethodCall smell detector

Makes this detector less smelly.