Simplify AssignmentWeightsController#set_student.