Sanitize the three different bitmaps of flags in BAN into single one.