Fix and refactor the getStatuses batches