Demoted controller to an internal class