You can replace this bit with `classdef.undefine_allocator`