I'd think that the ships of Earth Starfleet ( pre-federation) might be built with longevity and modularity in mind. Afterall, when Earth was on it's own, it had much less ship building capability, and therefore what they had had to be built to last. And, since there weren't many varied designs, they probably had to be pretty modular in mission capabilities, to a point, so that they could be periodically upgraded with the newest technology. Then there would come a point in time when they could be upgraded no further, but hopefully, there would already be a design ready to replace it in most respects.