perf improvement: factor require call out of object::clone