Topic: Ugly constants in Cucumber test cases

Hello,

What is the proper way to avoid using number constants in Cucumber test cases. Say we have an object that has enumerated types (saved to the model as TYPE1 = 1, TYPE2 = 2 etc.) and we want to define a test case in which some of these objects are given. Assuming we don't want to change the steps every time the types are changed; is there a neat way to represent these constants as strings in the test (obviously they're not called TYPE1, TYPE2, etc. so they could just be parsed).

So the goal is to make

Given I have the following object records
 | id | type |
 | 1  | 1 |

into

Given I have the following object records
 | id | type |
 | 1  | ANIMAL |

Thanks in advance,
~Muh