Refactored searchSearcher to follow the single responsibility principle