Simplified ClassLoaderVisitor.
Moved some classes from core to baseServices.