Better way to compute individual bits from BitFlags