Remove legacy code from device tree