Functions like that do not have anything to do in BKE really, even less when actually more used for bones than vgroups!
--threads