REF: extract spec/depend into a new traitlets.