City’s green champion to leave mayor’s cabinet