An 81-year-old woman is admitted to the hospital with intractable pain in the setting of metastatic breast cancer. Medical history is significant for ischemic cardiomyopathy. She has an implantable cardioverter-defibrillator (ICD) for the prevention of sudden cardiac death, and the ICD has fired in the past. The patient is started on intravenous morphine, and her pain diminishes. The patient knows that she is dying, and she requests comfort care only. She also requests that her ICD be deactivated so that it cannot deliver shocks. She understands the consequences of ICD deactivation and is steadfast in her decision. The patient has an advance directive, which names her daughter as her surrogate decision-maker.

Which of the following is the most appropriate management of this patient's request?