Define all possible link status in one place.
Expand the correct source location.
Refactor status functions.
Refactor commands to use new status functions.