separate the creation of specs of their execution

It makes the library karma friendly.