Converted `mongoose-paginate` to a Mongoose plugin