Only generate before and after callbacks when they've been specified
Simplifying the callback model for before/after