def dereference_name(reference):
    """ Extracts resource name from Deployment Manager reference string. """

    # Extracting a name from `$(ref.NAME.property)` value results a string
    # which starts with `yaml%`. Remove the prefix.
    return reference.split('.')[1].replace('yaml%', '')