Use static singletons instead of shared_ptr.