Refactoring functions in Human