Refactoring in generatehuman demo