Removing useless or misplaced code.