Extracted text_multifile_backend implementation to a separate file.