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