refactor(groups): cleanup leave-group code