Simplify branch status lookup

Fixes #9