Refactor plugin configuration into a separate class.