Remove warnings in pagination trait