Abstracting accessory class from controller.