Transform the plugin into a library