Extract method object for fixing illegal matches
Rubocop autocorrection