Move instance management hacks to libnbt to reduce maintainance costs.