smallest refactor ever