Minor refactoring of PullToRefresh