Use enum classes where possible.