Exposes the ability to create custom Material text selection toolbar menus, and cleans up the code around these menus.