The REALTOR® Code of Ethics has prohibited discrimination based on sexual orientation and gender identity for years.