TS-1830: use ats_pagesize wrapper everywhere