Refactor link utils out of hal array serializer.