refactoring to add bamboo translator