Fixes a defect when group is either deleted or something and because of denormalized strudcture post still has a link to that deleted group.
Adds TODO task for the future refactoring