Split out the namespace code