Split structures_mapgen.lua into another file (structures_mapgen_buildings.lua) containing the building-exclusive functions. When roads will be implemented they'll come into their own file the same way.