While clocks dont support changing sources explicitly (seems silly) you can detach and then set a new source. See if this makes them suitable for more widespread use so the original stm32 clock type can be deprecated.