refactor: pass parameters to getWeightDomain