I've started to migrate Collapsed Topics to using the new format_base in lib.php type structure and move my settings into the course settings. All going well so far after reading up on your code and a bit of deduction. This will certainly help me to reduce the amount of code I need to have .
I have one question though, in my course restore code for supporting previous Moodle versions where I need to process the data that would have gone into my bespoke table, is there an easy way to write this to the course settings? I can see that the code can retrieve the settings easily and they are written on saving the course settings correctly as long as my 'course_format_options' method is written correctly, but not a way to write them without creating my own specific DB method.
Thank you for this work, it has made my code simpler and puts the settings in a far better, logical and user friendly place.