They overvalued Hernandez but they also didn't seriously want to trade him before 2018, and even then, just starting spring training with Kingery as the second baseman wasn't going to fly on a team that had just signed Santana and Arrieta (and actually was in first place in September, even with the way things worked out with Kingery).
Ironically Galvis is the guy they maybe shouldn't have traded that year, especially as they were willing to play Crawford at any position. They obviously were willing to accept less for Freddy. Hernandez was better, cheaper/more controllable but just not as attractive (so many 2B out there, too).
It's funny though, as much as it does seem like they rushed the rebuild in some ways they also were way too patient in others. We're still trying to develop three starting pitchers who were in the 2017 rotation. And they stuck with Williams and Franco even as they gave up on Crawford and Alfaro. Still weird to me they can't (or don't want to ) move Nick for something.