Revert to original shared_ptr usage.