consolidate BytecodeClassLoader implementations