Picture this: a landlord rents out an apartment that violates local housing codes. When the tenant stops paying rent, the…