Remove legacy from device repo