Refactored the schema type tools to be in the SchemaType class.