CSHARP-1084: mono doesn't like enum.HasFlag, so removing all uses of it from code.