Writing readable code with TypeScript enums