An API to register a data function would make it possible to have a custom extension dynamically add a data function to the analysis document. Similar to how you can import a .data function (from a -sdf file) in the Register Data Functions dialog.