refactor: use datacenter context for generating management_url