Inherit the correct controller.