Fixes RT#90682 Moose enum warnings

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