Remove a few parts of the code that are specific to lndynamic.