Complex sentence: The class was fully withdrawn from service in 1999 due to the age of the units, with some being 40 years old.
Split into simpler sentences: The class was fully withdrawn from service in 1999. This was due to the age of the units, with being 40 years old.