MBTA crews spent the summer and fall replacing 28 miles of track to prepare the Fairmount Line for the arrival of electric, battery-assisted trains.