Doing refactor for user.