def shim_vdrp_measurement(vdrp_measurement_doc):
    """Shim a measurement document from validate_drp to a measurement document
    expected by SQuaSH.
    """
    metric = vdrp_measurement_doc.pop('metric')
    value = vdrp_measurement_doc.pop('value')
    output_doc = {'metric': metric['name'], 'value': value, 'metadata':
        vdrp_measurement_doc}
    return output_doc
