I don't think this will work, as `current_course_data.students_for_team(@team)` returns an array. We probably need to write a class to filter students based on criteria, maybe something like this:

```ruby
filter = StudentFilter.new(students)
filter.team = @team
filter.auditing = false
filter.students # returns array of students that are members of @team and are not auditing
```

We can then delegate to that inside CourseData, e.g.

```ruby
def students(filters = {})
  @students ||= current_course.students.to_a
  StudentFilter.new(@students, filters).students
end