Is it possible to reuse [this method](https://github.com/cbmi/cilantro/pull/179/files#L4R30) here?