I have 2 classes which have many relations [book, library]. Library has many books, but book has only one library. Both entities got their own Factory classes and i need bet