Refactoring (creates classloader only once)