@classmethod
def undecorate(cls, function):
    """
        Remove validator decoration from a function.

        The `function` argument is the function to be cleaned from
        the validator decorator.
        """
    if cls.is_function_validated(function):
        return cls.get_function_validator(function).function
    return function
