[Refactoring] Removed agent code from libtsload