Remove PMEM
Upgrade to modern style of allocFlags