Clean up how we store recorded locals in the imports table