Moved the generate report action to a new class