When creating a function from the frontend we should check if the study is suitable for converting it into a function.
I believe the following are the things that need to be checked in order for it to make sense to convert a study into a function:
One could do such a check in the backend. I don't see any advantage in doing it in the backend right now, but let me know if you think that would be better @odeimaiz.