[tb] remove deprecated code