class SinkConfig {

  @VisibleForTesting
  static com.google.cloud.bigquery.BigQuery getBigQueryService(Env env) {
    BigQueryOptions.Builder builder = BigQueryOptions.getDefaultInstance().toBuilder();
    env.optString(BIG_QUERY_DEFAULT_PROJECT).ifPresent(builder::setProjectId);
    return builder.build().getService();
  }

  private  SinkConfig();

}