Refactor common parts of entry_is_live and entry_guard_set_status
entry_is_live and entry_guard_set_status look very similar, and return almost identical messages.
We could refactor out the common code (even if we have to use macros).
This would also avoid them getting out of sync.