chore(plugin): Move plugins logic into an OO service