Add clone support for cloning one factories definition stack into another