Simplifies the implementation of the tracker text provider by using a `std::function` instead of a dedicated interface. This change improves code maintainability and reduces complexity.