Fixes Moose warnings due to updated way to call enum()