Deadcode and dead notes removal.