Move the session into a separate compilation unit.