The council shall appoint a city attorney and shall provide for the payment for such attorney for service rendered to the city including an amount set out as a retainer. The city attorney shall be the magistrate in the recorder's court. The city attorney shall advise and counsel the city council, mayor and other officers and employees of the city concerning legal aspects of the city's affairs. The city attorney shall perform such other duties as may be required by virtue of his position as city attorney. He shall be responsible for representing and defending the city in all litigation in which the city is a party unless said attorney be presented therein with a conflict of interest. He shall be removed by vote of three members of the council for neglect of duty. He shall be appointed by the council and serve at the discretion of the council.