Move last_known_location_hash to the correct scope.