DRY out search handlers.