Actually, one other thought here.
The shingles of the roof would also need to be replaced, having laid in the shade of solar panels for 20 years, accumulating moisture in the shade. If we are looking at the reduced costs of operating a house with 10 year old solar panels, we should also consider the costs will go up to cover shingle replacement as well as removal and disposal and removal of the exterior electric supply lines from where the panels were.
and,
there remains a question, for me at least, that when the solar panels are removed, what does it cost to have the solar meter removed from the house electric meter? Maybe only a couple of hundred, but who do you call to do that if the solar company is no longer in business? An every day electrician, or the local utility company?