removing the usage of static methods on MockProviderService