MAINT: Factors out the printing to stderr into an eprint function.