Making computing trigger weights and their application modular