Refactoring search results