Change how hooks are copied