Removes unnecessary variable assignment