Make before/after_* methods optional