Preserve a list of active libraries when duplicating a file

When I manually turn off some global library for a specific project file and then duplicate this file, I’d like to apply the same import settings to the copy. Currently, the copy has all global libraries re-enabled by default, which is not quite good in some cases.