Improving RetrieveLeagues to support DI