refactor bq job