Remove not necessary declarations.