Complex sentence: COSTAR was removed from HST in 2009 during the fifth servicing mission and replaced by the Cosmic Origins Spectrograph.
Split into simpler sentences: COSTAR was removed from HST in 2009 during the fifth servicing mission. It was replaced by the Cosmic Origins Spectrograph.