Move enumerations in their own module.