Move `hooks` import up