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.
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information