[Requirements] Create composite for modes
Create a class composite to mode and use it to add modes from context
menu in a clean way.
It should check that the mode does not exists.
(from redmine: issue id 2932, created on 2017-04-12, closed on 2018-02-01)