Shrinking of non-copyable objects