Refactor get partition path and IsVABC into separate function am: e012f65a1b am: 5ac9a7d20d

Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1701825

Change-Id: I84994a0b514153386b1e47e5da957b18bff9ee73