Generic hooks and triggers extension for modularize.