Slightly unified API when writing/updating spec.