Remove unneeded headers and declarations.