def METHOD_NAME(self, operation):
    if operation in self._operations:
        function = self._operations[operation]
        del self._operations[operation]
        if hasattr(self.widget, operation):
            delattr(self.widget, operation)
        return function
    else:
        return None