Web Inspector: [CSS Shapes] Refactor highlighting code to decrease Shapes API surface