Refactor to mixpanel objects.