Move the state and next piece code from NewAssessment into new classes.