Change key reuse flags to typed class enum (for sx use).