Code cleaning for article paginator