L2-input/output: use feature enum type in flag update function