If we have a function to set sanitizers on a class why do we need to pass it to the constructor as well?