Move filtered_view_cb to saner location