I'm sure they start off with some sort of concept and potential ending but these kinds of stories always evolve as they go. Marvel relies on this as the story and controversy is what sells. Fixing things afterwards can wait because all they need is some other big event and retcon.