Avoid deprecation warning around Enum.first