When I use "Continue with Coinbase" to sync my transactions, automatic transfers with unused margin are imported as "Realized PNL"
Workaround
If I don't want those transfers to be added to my "Other gains", I can manually remove the tag - What are Tags