I think this deserve to be factorized, probably by creating a buildbotstateProvider service, which would add a nice api to this state + top menu problem.