Refactor circuit_expire_building
circuit_expire_building() is large and hard to follow- it can be constructed from smaller functions. Unit tests can also be added for extracted functions.
circuit_expire_building() is large and hard to follow- it can be constructed from smaller functions. Unit tests can also be added for extracted functions.