Moved all compound emission code to AgentEmitterComponent and replaced existing code with calls to emitAgent(...)