Restructure iteration logic for reading system metadata and data object.