Consolidating libraries