Reorganizing libraries