User flair remains after user is removed from group

User.where(flair_group_id: REPLACE_WITH_GROUP_ID).where.not(primary_group_id: REPLACE_WITH_GROUP_ID).update_all(flair_group_id: nil)

The above command can fix your issue. Run this in your rails console. Please take a backup before performing it.