Move report data generation to the model as a method, move misc data transformation functions to the utils.py module
Remove remarked code