Here is an example where my comment above about adding a constructor to MoveItErrorCode would shorten the new code back to a single line.  (Though the curly braces are a good idea regardless. https://www.imperialviolet.org/2014/02/22/applebug.html)