KAZOO-2450: use named function in place of anonymous