Create my:add-hooks to remove repetitive code.