Elastic scattering fitting framework