[client-backup] extract shared code for creating service endpoint path
Summary: Extracting code that can be shared with function to create backup API calls.
Test Plan:
- flow
- check if blob calls works
Reviewers: michal, marcin, bartek
Reviewed By: bartek
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D8989