Reverse changes in plugin_deluge, moving to separate file