Reducing production of excess biomass during wastewater treatment