Split out helper.