refactor: Generalize RingHom.coe_mk & RingHom.coe_monoidHom_mk (#2385)
RingHom.coe_mk
RingHom.coe_monoidHom_mk