`resourcesToRemoveFromLibrary` can be filled on the previous line and reused.