Remove ugly code which only for Localytics

And expose localytics interface (not recommended to use however)