Refactoring log_execution_time_summaries.