Fixes RT#92227 (Moose enum warnings)

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