Be it further enacted, That any office, department, or agency established under this Act, with a name or with powers and duties the same or substantially the same as those of an office, department or agency existing before this Act became effective, shall be deemed to be a continuation of such office, department, or agency and shall continue to exercise its powers and duties. Any provisions in any law, rule, regulation, contract, grant, or other document relating to such a formerly existing office, department, or agency, in so far as not inconsistent with the provisions of this Act, shall apply to such office, department, or agency established by or under the authority of this Act until repealed, amended, or modified as provided in this Act.