[task] Refactor plugin.h