Revert "Refactored injectdestructors.nim (#11926)" (#12169)
Revert "Refactored injectdestructors.nim (#11926)" (#12169)

This reverts commit 20dec10722eecb1e9b9ee43a3e1cda7533837c72.
dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim