Moved where parameter sanitization to internal method.