What goes into the storage when the outpost is abandoned/captured?

Abandoning the outpost
In case of abandoning your outpost you need to remember to move all your troops and tools to another castle or you will lose them.
 

Buildings in districts
If you have a building located in a district, that building will behave as if it were not in the district. For example, a bakery. The bakery should remain on the outpost. So it will be that the district will return to the original owner’s storage and the bakery will be placed in the buildings and decorations storage of the new owner of the outpost, who can then place the bakery back on the outpost.
 

Build items
The build items return to your storage after the occupation and abandonment. But make sure you have enough space in your storage.
 

Does the building go into the original owner’s storage when the outpost is abandoned/occupied?

YESNO
Trade district Storehouse level 1 – 7
Military district Stonemason
Inner district Flour mill
Mead distillery Bakery
Barrel workshop Marketplace level 1 – 8
Honey gardens Sawmill
Relic bakery Watchtower
Relic storehouse Hideout
Relic woodcutter Guardhouse
Relic quarry Fire station
Relic greenhouse Master builder
Relic conservatory Construction crane
Apiary Barracks level 1 – 5
Brewery Siege workshop level 1 – 3
Storehouse level 8 -9 Military hospital
Marketplace level 9 Forge
Barracks level 6 – 20 Stables
Siege workshop level 4 Drill ground
Defense workshop level 4 Defense workshop level 1 – 3
Cattle farm 
Decorations placed in outpost