Reland "floss: Refactor build for bt_common tests"
This reverts commit 8058f7ff.
Playing whack-a-mole with commit 474650e8 (GD Rust: Port
parameter_provider to rust) which breaks floss unit test build.
Bug: 228975948
Tag: #floss
Test: ./build.py --target test
Change-Id: I24a661b5f24d54d50eb01db221e8d851a44d0f10