Move check for MEMORY to republish.