Remove get_adapter_and_connection helper function