refactor(cmd): Move unitNameMangle to cmd.