why api doesn't become an attribute of FunctionProcessor? same for keep_original_in_documentation do we need to do self.api = api in __init__??