Context class cleanup.