@Override public void remove() { if (removed) return; super.remove(); f.removeAlgorithm(algo); f.removeAlgorithm(cv); A.removeAlgorithm(algo); A.removeAlgorithm(cv); // make sure all AlgoCASDerivatives get removed cv.remove(); }