I'd probably turn `where(:filter_id => applicable_filters)` into a scope.