Added a type-weight mixin for handling type weights globally