I can't see how this gets tidied up when I course group is removed as this set will still reference the deleted course group.