I can guarantee you that the fabrication / transportation / installation of a new electric unit far outweighs using the existing gas unit until end of life in terms of CO2 emissions. No different than diving a old truck vs buying a new tesla. Net negative.