Refactor/def trees

Avoid redundancy between mods in trees and equivalent symbol information. Review by @DarkDimius