Internal helper crate for duchess. Do not rely on this API.