Extract cqengine deps to cache manager to keep core clean