Fixing error with baseUrl DI into factories