EZP-22564: move search result extraction to handlers