Removing unnecessary namespace objects