Move configuration to hook.