Remove a bunch of code that's no longer needed.