You can save a lot of frames that look beyond repair if the value of the frame is high enough and the repair is inexpensive enough. I've replaced dropouts, steerers, straightened what appeared to be terribly bent rear triangles, but sometimes it's "he's dead, Jim".
In that case, consider repurposing.