On water streams containing Nitrogen and Phosphorus you can grow algae. Algae can be used as ground source for biofuels, plastics and artificial products.
Concentrated oils and fats separated from your wastewater can be a source for energy or reused in rendering processes.
Phosphorus can be recovered by addition of specific chemical to create struvite, which can be used a fertilizer.
Your waste and wastewater has value and Nijhuis Water Technology can design systems to recover these valuables for you with waste to energy by wastewater removal.