[DDMD] Remove some dead code and cutting #ifs