Handle namespace collision warnings

This handles namespace conflicts warning when you use a class that conflicts with different class names the namespace hierarchy.

@ke-yu @aparajit-pratap 

What are you waiting for to do this refactoring?