The top grid could easily be sorted by using a completely different grid pattern for the corner section, such as an X pattern, a circular pattern (could also be used for T and + junctions), or an X-based triangle pattern. Personally I expect the pipework would be the bigger headache, requiring T-pieces, bends, connectors and all sorts.