Access Paginator Environment via public Paginator method
Refactor some code.