Replace magic number with less dangerous strings:

0 => save_safe
1 => save
2 => delete_safe
3 => save_new