Refactored out config to factory for translations