Refactor marker data model.

Move the markers data out of the table adapter into a separate class.