removing bean from the xml