Integrable Deformations for N=4 Super Yang-Mills and ABJM Amplitudes