Cleanup table formatting of modes.