Use enum instead of magic number to specify checkout stage.