Refactored questionnaire_of_type method in assignment_analytic