Refactor DuplicateMethodCall smell detector