I have an ArcGIS Pro project with a finished layout. I realised that I have to overwrite on of the layers of the map with a spatial join. When you overwrite a layer in ArcGIS Pro, it typically gets first removed and then re-added which will remove symbology and legend order. So I did that in a different map in the same project and it still removed the layer from the map that I use in the final layout. Is there a way to avoid it in arcpy? I will have to update the layer again and would like to keep the data analysis script and the layout script in one project.