Removes unnecessary console.log entries