Refactor get ns

No match.