Initial refactoring made, using decorators and pipelines to manage the translation