Move some logic from labs.app.Controller into labs.app.PagesContainer.