Move deletions to the correct place in code.