[PATCH 1/3] dmscript: Move the loading of the container to a helper.