Move index health calculations to ClusterIndexHealth so it can be reused