Removes unnecessary variable path