Fixes RT#90677 Moose enum warnings

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