Refactor events with integer flag fields and accessors.