Extract filtering functionality into a concern