Split code to have one class/struct/union per file

Proposed for the LTS SIG