Refactor plugin output parser into its own module