/** Get flags corresponding to a bitmask. */
static vector<const QuantityFlag *>
flags_from_mask(unsigned int mask);