Move repetitive contextmenu related logic in one place
This makes a bit easier to handle the stuff.
Also we don't need the addVersionControlPluginActions
utility method
and we can put it in the new utility method instead.
This makes a bit easier to handle the stuff.
Also we don't need the addVersionControlPluginActions
utility method
and we can put it in the new utility method instead.