I tried something like that, but had problems with the way that EntitySpec.configure puts CharSequences in flags instead of config keys