Pro-Iran militias are looking to settle an old grudge in one of the Islamic State's strongholds in northern Iraq.