Added support for deprecating a controller.