Small refactoring for slots