Refactor WebUser.php