AI Builder cleanup before XML load