refactor(shallowCopy): microoptimization