Convert all plugins to return a function that can is invoked with a site instance.