Refactoring classes

Because the new code and the deprecated code both output classes, the css was being output twice :blush: 

Moving the classes into one file enables me to check if they've already been output by the deprecated code before doing it all again...
Cool, I think that's actually coming from a feature request I made before going on holiday. Forgot follow up, so thanks…