Update for namespaced enums.

Should we take the opportunity to make variant names shorter? E.g. remove the `Backend` suffixes here.