Getting proper span flag value from bitmask.