Refactoring duplicated code for filtering deliverables in get_deliverables and update_feedback deliverables_controller actions