Use bitflags! macro instead of self-made MagicFlags struct