Cleaning up the code in document_converter.py by moving the functionality of remove_duplicates to utilities.py