[Tunnelbroker] simplify retrieving device token
Summary:
Refactor to reduce code duplication and improve readability.
Depends on D12771
Test Plan: cargo build
Reviewers: bartek, marcin
Reviewed By: bartek
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D12773