Replace deprecated IPluginRegistry calls with newer and simpler calls