Fix indenting.

Refactoring GetNamespace method.