Clean up nesting in `get_counterparty_output_claim_info`