Why not call `process_callflow(Number, AccountId, <<"device">>, wh_json:get_value([<<"value">>, <<"id">>], JObj)) here in the first list comprehension?