MDL-34211 Use the $table_name argument to check against $metatables key values