Refactor specs

* Introduce new `Builder` specs.
* Extract utility functions into `spec-helpers` module.