in the case of—
(A) an application proposing demolition of a public housing project or a portion of a public housing project, that— (i) the project or portion of the public housing project is obsolete as to physical condition, location, or other factors, making it unsuitable for housing purposes; and (ii) no reasonable program of modifications is cost-effective to return the public housing project or portion of the project to useful life; and
(B) an application proposing the demolition of only a portion of a public housing project, that the demolition will help to ensure the viability of the remaining portion of the project;