Refactor #params_for_search