Keep only captured symbols in CodeBlock symbol tables.