def pluck(payload, path):
    """Pluck a field out via path delimited by '.'"""
    path_parts = path.split('.')
    for part in path_parts:
        if not isinstance(payload, dict):
            return None
        payload = payload.get(part, None)

    return payload