You can always take a whitelist approach to federation, federating only with well-moderated instances.