Factorize part of scenemanager