(d)the re-conversion into a dwelling house or a place of public worship or a factory of any building which has been discontinued as, or appropriated for any purpose other than, a dwelling house or place of public worship or a factory, as the case may be;