Complex sentence: The locomotive hauled day trips and longer excursions with the NSWRTM throughout 2007 until it was withdrawn from service for a major overhaul at the end of that year.
Split into simpler sentences: The locomotive hauled day trips and longer excursions with the NSWRTM throughout 2007. It was withdrawn from service for a major overhaul at the end of that year.