IMO `CreateCommit` shouldn't be changing any of its inputs, as creating a commit is orthogonal to fixing up the user-provided string and creating a commit is pretty specific operation. Prettifying the commit is something you do when the string enters your system.