Modular pipeline for small bodies gravity field modeling: an efficient representation of variable density spherical harmonics coefficients