Tag tailored demulsifier formulation