Remove class name from namespace definition