Update plugin API as plugins are now constructors by default