[REVIEW ONLY DO NOT MERGE] Exportgroups

Don't think this does what you think it does...aren't you removing the *group* named 'tableName' here?  You really need to scan all the group sets to find the table and remove it from the appropriate group.