Use shared registry and nested scopes