Remove unnecessary code from DE