check_wire_version_in_range refactoring

RUBY-683