Extract context class.