tg import: Remove tg_ prefixes from functions