Remove unused code from context search module