I often just create a tiny module containing only the enum, like Encapsulating enum access via dot syntax - #2 by mbauman.