It was done mainly to check in the "flat" function structure. Not needed since the class structure is adopted now.
Issue https://github.com/swig/swig/issues/446