Port number and pin number are independent parameters to the digitalWritePin function now. You could make it so any pin numbers greater than the number of pins in a port automatically sets the correct port number.
Perphas something link portNum = (pinNum%numPinsPerPort); could work. But where to get the `numPinsPerPort' value?