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