refactor search/category refinements