This change breaks the function for anything other than the new plugin. This should either be generic (preferable), or extracted into a method which is named to imply it will only work with that one plugin.