s2w/dt2w: separate PocketMode specific code