You go into the buildingfile and remove the option for the governor buildings to train Peasants... But I wonder about Herdsmen. They are basically just mounted Peasants.