Don't use `&:to_h` style enumerations.

I'm not sure if they're 1.8 compatible.