Refactoring genome