Simplify link_caf and mkForeignLabel functions