Use shared examples for callbacks and hooks