def get_tin_npi_list(decoded_messages):
    """Decode messages and return lists of npis and tins."""
    if not decoded_messages:
        return (None, None)
    return zip(*[(provider.get('tin'), provider.get('npi')) for provider in decoded_messages])