The library of a mosque has become filled with duplicate copies of books that exceed the actual need. What is the ruling on removing these duplicate books from the library to other libraries, considering that they were acquired through purchases from donations provided to the library, gifts from authors, or by dedicating them as Waqf (Islamic endowment) to Allah in general or to the library?