Would it make sense to have the role passed as an argument? It's not always called foo-server, and I can imagine we'd want non-server roles checked in that way too.