Get rid of get_system_context function