These 4 lines can be replaced with schema = context.get('schema', logic.schema.default_package_search_schema()), the comment is not necessary here.