If I store a Refinery module with minerals in the bins, do they stay there?

//ads -- adsterra.com -- native banner
?>
Pretty much what the title says, really.
I have a Refinery module in my ship, with 4 bins containing between 20% and 85% of a mineral. If I swap the module out for something else and put it into storage, do the part-resources get stored along with it, or are they lost?
Pictures about "If I store a Refinery module with minerals in the bins, do they stay there?"



What can be recycled in your recycling bins
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: RODNAE Productions, ROMAN ODINTSOV, Debabrath Goswami, Victoria Emerson