fix bug where the AssessmentSetting mode was set to formative for all Assessments, and refactor for drying up code
fix bug where the AssessmentSetting mode was set to formative for all Assessments, and refactor for drying up code

lumenlearning/OpenAssessments,atomicjolt/OpenAssessments,atomicjolt/OpenAssessments,lumenlearning/OpenAssessments,atomicjolt/OpenAssessments,lumenlearning/OpenAssessments,lumenlearning/OpenAssessments,atomicjolt/OpenAssessments