And yes I could write something like:
```
set_default_route_flag
unset_default_route_flag if !wan_dev?(d)
```
but the implementation is a bit tricky as stated by @jreidinger already, so I decided to keep it in one function bcs these lines are very tightly coupled.

So, I try to improve it by choosing a proper name.