Break out name conversion spec helper

For further reuse