Refactor code so that the Toolbar behavior is determined by an array of L.Handlers, given as part of the class definition (rather than as an argument) and each responsible for handling its own UI element in the toolbar (ToolbarIcon).