Extract this code into a new method on Tent.Data.Filter, and call that from here.