Small bit of refactoring in kartController