Refactor bulk operations into ZDDCube class.