Move background manager into entity manager