refactor(util) copyObj