Refactoring of out_bigquery.rb

Hi,

fluent-plugin-bigquery is very useful gem, and I want to contribute the development. But I think some part of out_bigquery.rb smells bad, so I want to refactor the code at first.

Thanks.