Move logMetrics to tasks, exclude from deploy