MAINT: move compatibility functions to the beginning of the module where they may be easily seen and replaced when they become obsolete in the future