Decouple the app and plugins.