Involve IoC framework to swith between the two providers.