Removes unnecessary local variable