Good afternoon!
Based on your fork, I created another fork slightly more balanced for Krastorio 2 https://mods.factorio.com/mod/Realistic_Electric_Trains_fix_balance_K2 , supplemented by my other mod https://mods.factorio.com/mod/Train_balanced_K2_plus
Since I'm not a programmer, I can't write my own code. And, unfortunately, I did not have a better solution.
If this decision is unacceptable for you, or you can offer a more correct Option, we can make the most acceptable decision for everyone.
For me, the main thing is to make a more balanced version of the integration of Realistic Electric Trains + Krastorio 2.
Thanks!