I believe logically the methods I am adding here wouldn't end up needing to be refactored, the refactor part would be of the already existing logic in the TGNode to allow for it to be able to use the method I wrote here. There are a few things that would need to change if we wanted to be able to support doing this on the TGNode because the current framework doesn't exactly allow for it since the devbind script doesn't exist on that node. The main reason I refrained from doing that rework in this patch is due to the lack of need for the support of it on the TGNode at this time (and potentially in the future) and the lack of existing support.
The methods I am writing here however would likely not need to be reworked, just moved to their superclass if we decided we wanted to do the TGNode rework and add support. Apologies if I made it sound like I was submitting these changes just for them to be completely overridden and changed in the near future and hopefully that makes a little more sense.
Thank you for applying!
I will start doing this in future patches, sorry for any difficulty it may have caused trying to see previous comments.