Move base url generation to new connector class.