Convert strange flags to Groups.