Use .detach() for media attribution instead of rebuilding.