Merge "Clean up the logic of selecting launching stack"