Tracing statistics: separate status view handlers from actual processing

Doing this makes debugging and performance optimization way easier.
Tracing statistics: improve code formatting in back-end
Tracing statistics: remove not used inputs and relation map