Cleanup backend class structure.