Removing duplicated code from Opps Plugins of TinyMCE