Fixes RT#90670 Moose enum warnings

Fixes https://rt.cpan.org/Ticket/Display.html?id=90670

The new Moose update change the way enum should be called and calling it the old way generates warnings.