[TASK] Restructure typolink tag generation