bin/extract.rb: fix some rubocop offenses