One of the largest hospital systems in the country has been trimming its portfolio for years, and the strategy is starting to pay off.