Unify the tail call handling code with the normal call handling code a bit.