Switch utility function into private.