[AA Standalone] Clean up code in `libraryScopes.kt`