Remove code for legacy pages.