whilst i appreciate the 'temporary' label, i was taught that if you can then you program it at the user level of access using the library interfaces.
if you can't without changing the library, then you add it to the library with appropriate interfaces.
if it's a bug, then send a bug report, a bug report with a corrective patch is even better.
doesn't really matter if it's libmaple or ha basedl, there are 'library interface' functions for doing the remap of i2c1 to its alternate pins.
iirc there's a nicely laid out 103 board with nrf24 and esp8266 headers that had i2c1 wired on the alternates of PB8/PB9, baffled me at the time, but awhile later i pounced on a snippet someone posted that showed how to do it.
pretty sure it was libmaple though, also pretty sure i posted as much saying i;d been waiting for it to pop up.
i've funny idea spi1 remap has also popped up as well.
strange,in the reply compose window, it seems i2c, i2c1and spi1are now accepted as a valid spellings,
whilst spi isn't