def minimize_reference(reference):
    """
    Takes a reference spikein dataset object and strips it down to a subset of its fields.
    """
    reference_fields = ['accession', 'dbxrefs', 'description']
    minimized_reference = {field:reference[field] for field in reference_fields if field in reference}
    return minimized_reference