Determine the most appropriate render function using a clone of the xblock logic (with a todo to share it)