More on search results.
DRY refactor.