Change the mechanism of creating MapProvider.