DRY up loading the correct provider class