Extract scope compression