Added base API URI as optional argument for ServiceFactory