Replacing a naked pointer with a unique_ptr. No functional changes intended.