refactor curator util.