They need to straighten out the track in the 'hood where the off-track excursion happened.
They could, but that would mean a few neighborhoods in Port Richmond get “relocated”. Does not excuse the engineer going double the speed limit, however. (Since the feds own this railroad, the costs will be at least five times what a private railroad would need to spend.)
Take note that this highlights a failure of the so-called Advanced Civil Speed Enforcement System (ACSES) too, which ought to have slowed the train down IINM.