Remove un-necessary class declarations.