tracker.export: Refactor out shortcode splitting and add unit tests.