Generally I've found that when the transfer case's vent is puking oil; the transmission's rear seal is leaking.
The oil level in the transmission runs higher than the oil level in the transfer case. In the event of rear seal failure, the transmission will lose oil to the transfer case.
A wire mesh in a breather will help "de-mist" any venting air, and keep some amount of dirt out.