Extract toggle_scope partial