Remove unnecessary module declarations.