Moves several classes to shared library.