Removes references to legacy enabled property in removeAll function.