Factor out health unmarshaling.