Extract paginator to separate class