Consolidating library references