Refactor: Grouping user assignment by the course or group of the assignment.