rosetta refactoring