Rename constants -> util; memalloc error handling