Move `offsetsOf` into it's own module.

Closes #237.