Change map transition code organization.