Endometriosis and menopausal hormone therapy impact the hysterectomy-ovarian cancer association.