Cleanup of code

* Removed unused code in convertions.
* Extracted the Strings used in internal model validation to
  new static class for easier maintaining.