Externalize search service as its own npm module.