Encapsulate plugin in it's own class

A bit of code re-organization , like I attempted here https://github.com/humanmade/backupwordpress/pull/466