Unfortunately only trailing arguments can have defaults at the moment, so this is the only way to do it.