The two families exchanged premises, including the accommodation above, for a period of time until there was significant improvement in the Fieldgate Street bakery.
The exchange of residences and the bakery's progress are linked in this passage. The families temporarily shared a home while waiting for the bakery to improve.