Don't hardcode sizes of enums