refactor model translations generation