Refactor out common URI base

Test Plan:
- Basic login and API check