Reconciling AMP algorithms derived from belief propagation or the large system limit bethe free energy