[TASK] Simplify setting BE/warning_mode