Use make_namespec instead of reimplementing it