Change NameComponent to Name::Component inner class.