#55983Cleanup init() function of ElementBrowser
Description
Right now the init() function of the element browser has ~450 lines :)
We should refactor it in the similar way it was already done in SelectImage and BrowseLinks.
This will also allow us to remove duplicate code between these classes.