A central part of the American effort in Iraq has been training Iraqis to take responsibility for the country 's security , and on Thursday Iraq 's Sixth Army Division formally took control of four districts in northern and western Baghdad from the American Third Infantry Division .