Locomotive repair and maintenance