Refactors to the ingest process, metadata.