Extracted generic code used for both the Outline View and the Quick Outline. Removed esv-based outline backwards compatibility.