However, if the statute, regulation, or other action has vested the functions in the agency from which it is removed under the reorganization plan, the function, insofar as it is to be exercised after the plan becomes effective, shall be deemed as vested in the agency under which the function is placed by the plan.