Sanitization code is moved to models.