Remove dead code (local modules recording)