Removes unused loop from exchangeIntegerHalos