def extract_key_value(line):
    """Return key, value from given line if present, else return None.
    """
    segments = line.split('=', 1)
    if len(segments) < 2:
        return None
    key, value = segments
    value = value.strip()
    key = key.strip()
    value = value.strip()
    return key, value
