Replace the functions in the scopes package to infer if scoped features are enabled with a concrete struct that is injected to consumers. This permits tests to toggle scopes features without having to specify environment variables.