Refactor in_monitor_agent to remove unnecessary instance eval