Adapt to recent changes in pyfarm.core.enums