They will do the switch after the convention. Biden has ~$100 million in campaign funds. If he drops out before the primary, NO OTHER candidate can use them. But after the convention, the funds are transferable to the replacement.
The DNC top brass gets to choose the replacement. They probably already have.
Joe was good puppet while they had him.