Flatten all the badges.