Refactor plugin manager stub