refactor group links for theme_link processing