searchhelp: code cleanup