The units who have a blue background to their unit in the settlement are those using up the free upkeep slots in the city. Only militia units can fill those slots.