Move hexify to top level.