simplify the context configuration/look up for d1 and registry service
urls