Remove agent from mapimpl