Add a registry.share() method