Cleanup: class loader deprecation and simplification

Time to get rid of this thing: marking it as deprecated.
What's the reason of using reset here? And if so wouldn't it be better to return `$classLoader` then instead of `$loader[0]`?