Move stathat call out to a helper.