rootstracker.remove returns previous state (#16831)