Move job states into their own class for managing permissions