Can probably use `std::unique_ptr` for these.