Refactor GetCurrentPortalSettings and GetCurrentUserInfo