It would be easier to extend the Adafruit_MCP-23008 class to a sub class that would redirect pins 0-n (where n-1 is the number of digital pins on the MKR) to the system digitalWrite(), and higher number pins to the expansion port. I think a cleaner solution as well.
When you create an object like that, call it gpio or something instead of mcp.