Add derivation builder.
Extracted shared examples to remove duplication between builder specs.