Issue #2219689 followup by damiankloip: Separate out logic for getPluginTypes/viewsHandlerTypes from ViewExecutable.