Refactor the User model complex method.