Refactor a bit to remove code duplication
Refactor a bit to remove code duplication

sdgdsffdsfff/boomerang,lognormal/boomerang,sdgdsffdsfff/boomerang,FredXue/boomerang,levexis/boomerang,levexis/boomerang,lognormal/boomerang,FredXue/boomerang