LPS-36303, LPS-36119 Only do checks in SourceFormatter for portal