made analytics_spec more readable