Refactor useReducer to XState in 5 easy steps