Move TE NBT persistence logic to evilcraft.api