chore(RingTheory/PrincipalIdealDomain): factor out IsPrincipal.map, use RingHomClass (#18010)
IsPrincipal.map