Removes dead code from the extension