How to remove dip stick tube

I turn the engine over with the oil pan off, then use a punch in the dipstick tube hole from the bottom to tap it out with a hammer...