Consolidate common scope and context retrieval