Make sure that the class object class is not accessible from Kotlin
Common functionality moved up
Common code extracted to a method
Double-checked locking implementation fixed
Unused class deleted