Fix Moose enum deprecation warnings