Moved default hooks out to utils