Start of refactoring fetch and process sections.