Custom tasks container that need to execute their body many times need to reproduce the logic of MacroInstance to create clean copy of their content. It would be helpful to make something like this copy method available for reuse.