There are several (in my opinion) drawbacks
1) The smallest channel should be determined not only at the end but also in the middle, for example, if you delete an intermediate track. Defining channels inside the Kontakt sampler works similarly
2) It's strange that tracks are made at the end of the project, if there are already some other VSTi instruments after Kontakt
3) Feedback routing should be activated automatically in the project settings if the user has not activated it
4) The script should automatically remove the master send from a multichannel instrument.
5) The script should automatically increase sequentially the number of channels on the track with Kontakt. For example, if there are 3 tracks, then 6 channels (3 stereo pairs). Otherwise, the script will set an empty channel if its number exceeds the number of channels on the track with Kontakt
6) Feedback routing is not the best solution per se. Better to do it in two tracks.Therefore, additional scripts are needed
In my repository (in my signature) I have implemented these things, you can test as well. Thanks if you find bugs or provide tips! We can develop this topic together