Fix intermittent spec failure

This is a temporary fix until Beans can be turned into an actual
class (or some other non-global entity).