Move E into the nearest relevant scope