Move tracking set up to separate module.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>