[#58] Extract device session data into a helper module.