remove old code related to the old way that the tree was broken up according to constant foreground state