Delete local reference after constructing class