factor out the common type synonyms between Enum and Enum.Pattern to avoid import conflicts