[DEV-2155] Refactor migration to introspect Activity table.