Remove unnecessary declarations.