Remove most of libmemory and all of units_memory