Remove unused compatibility functions from TG