Move the TraitInfo stuff into rules.lua