Merge a DS system into a Components Library

Hi! I am currently working on this project where we have a Design system that feeds a Component Library. I’d like to merge both of them and have only one file. Currently our Component Library is running out of memory due to “Imported components”. My guess is that if we move the DS to one file, we will have more memory in the component library. What’s the best way to go about it? I tried cutting & pasting but all the complex components that have instances with overrides have been set to default.