Remove unused get_scope_and_cx functions.