Applesremove ability "return gold and wood" or whatever it is called from your structure.
make a trigger that adds the same ability again to your structures after they have been built (or if the building is already on map you can add the ability to it at 0.00 of game-time)
build your town hall closer to the gold mine