Each department exercising the functions, powers, and duties of a former department or agency is, for the purpose of succession to all rights, powers, duties, and obligations of the former department or agency, considered a continuation of the former department or agency. If a former agency is referred to by law, contract, or document, the reference is considered to apply to the department now exercising the functions of the former agency.