Move legacy subsystems to "legacy" directory