WIP(plugin): Big refactoring using OOP-principles