Organizing Legislative Parties: How Elections and Policy Positions Shape Intraparty Politics