My only concern is that you have to make sure to keep the prefix used in the rule code creation in sync with the prefix here rather than having just one source for the prefix value.

What about if you wrote the mapping like this:

```
YearBegin.prefix: YearBegin,
YearEnd.prefix: YearEnd,
...
```