I don't know if it's a bug or oversight, but when I tried to retrain generals for armor and attack upgrades, there are limitation on what general can be upgraded. The main thing I noticed is that if the general's unit size is bigger than default due to traits, they will not be available for retraining, thus that general will not be able to upgrade. Since I used huge unit size, if the general unit has more than 40 soldiers, it's not possible. The only way to retrain is to take some casualties until the unit is under this threshold, then it is available to retrain. This is frustrating when I wanted to upgrade my faction leaders and heirs, since they have much more soldiers than that and they regenerate very fast. Is there any way to change this behaviour or is it hardcoded?