Refactor constructors of Task
Merge branch 'quality_control'