Update only POI categories that were actually changed. Some refactoring.