Refactor the Bazel scripts.

Change-Id: Iab32c5bd319e7af527dca4736b10330ca2e8bc8c
Reviewed-on: https://code-review.googlesource.com/c/37950
Reviewed-by: Paul Wankadia <junyer@google.com>
4 files changed