Replacing engine without removing the tranny?

I busted the front pump on my 904 putting the motor back in. Had to take the transmission out anyways and get it fixed! What was I thinking??