This should probably be: `if local_context.registry`.