Get rid of unnecessary copy-to-self