Replace enum code with ruby-enum gem