Move logic executing controllers to separate class