[DependencyInjection] Pass a Scope instance instead of a scope name.