Remove setPrototype and simplify clone.