TODO: moved a task
cluda: moved api discovery objects to a separate module

And transformed constants to functions in order to work around autodoc limitations.