extracted FlagDescriptors class