Refactoring a WordPress plugin, Object-oriented, a start