def _resolve_callable(c):
    """Helper to resolve a callable to its value, even if they are embedded.

    :param c: FN() -> value-or-callable
    :returns: fn(fn(fn....))
    :raises: possibly anything, depending on the callable
    """
    while callable(c):
        c = c()
    return c