Remove unnecessary inForest variable.