This tests seem to appear in several places. What about creating a method in `ContextType`, like `isTooltipOnly`? Or, have a set of these contexts, and simply use `if (tooltipContexts.contains(context.contextType)`?