this seems confusing, but `filteredRecordArrays.values` is actually an array of record arrays by type. Hence the flatten. 

So this is actually just destroying filteredRecordArrays not the records.