could you move this under `hooks` since it is a form of a hook?