convert to using shared pointers in ChartTranslationOptions
beautify