until now there is no real place for it. But I need almost the exact code for the OCS calls, not only for "informRecipients" but for all the conditions in this case statement. So I will probably move most of them out to separate methods to make them independent from the ajax call and the POST-variable. But this will be subject to the OCS-api pull request.