Convert many std::shared_ptr's to std::unique_ptr's