Transformations of the data from AIS should be in one place.

Fixes #32.