refactort genome