Prevent two classes with the same name.

This is a temporary fix. This code should probably be factored out.