Refactor: use bitmask for alert kind
More efficient in storage and CPU, and easier to adapt if XML syntax changes