Moved layer2 collection to its own function
Moved publicSubnet to its own function
Moved generation of private subnet out
Moved some future expansion out of main