[M] Refactor routing and paging error