Refactor ObjectUtils.