nit: seems like the first arg should just be named `provider` since it's actually a provider object (not info about a provider).