Refactoring in SqlTypes