Tidy up some repetitive code in `LinkMap::set_base_table`.
Tidy up some repetitive code in `LinkMap::set_base_table`.

realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core